{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/header.html"}
{literal}
<script type="text/javascript">
    $(function(){
        $('.assortment').hover(function(){
            $('.assort_list').stop().fadeIn();
        },function(){
            $('.assort_list').stop().fadeOut();
        });
    });
</script>
<script type="text/javascript" src="/js/pricetrend.js"></script>
<script type="text/javascript" src="/js/highcharts.js"></script>
<script type="text/javascript" src="/js/exporting.js"></script>
<style>
    .assort_list{display: none;}
</style>
{/literal}

<div class="search_list">
    <div class="search_crumbs">
        <p class="fl">全部结果<i class="ffs">></i></p>
        {if $cate_name <> ''}
        <p class="fl crumbattr"><a href="/pricetrend/index?cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search ={$list_search}&order={$order}">品种：{$cate_name}<i class="close">关闭</i></a></p>
        {/if}
        {if $currency_name <> ''}
        <p class="fl crumbattr"><a href="/pricetrend/index?cate_name={$cate_name}&cates_name={$cates_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search ={$list_search}&order={$order}">币种：{$currency_name}<i class="close">关闭</i></a></p>
        {/if}
        {if $area_name <> ''}
        <p class="fl crumbattr"><a href="/pricetrend/index?cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search ={$list_search}&order={$order}">交货地：{$area_name}<i class="close">关闭</i></a></p>
        {/if}
        <p class="fl"><i class="ffs">></i></p>
        <form method="get" action="" >
            <input type="hidden" class="orit" name="cate_name" value="{$cate_name}"/>
            <input type="hidden" class="orit" name="currency_name" value="{$currency_name}"/>
            <input type="hidden" class="orit" name="area_id" value="{$area_id}"/>
            <input type="hidden" class="orit" name="area_name" value="{$area_name}"/>
            <p class="fl crumbattr_search"><input type="text" name="list_search" value="{$list_search}" placeholder="在当前条件下搜索" class="crumbsearch-input"/><input class="crumbsearch-btn" value="" type="submit"/></p>
        </form>
 
        <p class="fr">共<span class="blue fwb fs16" id="total">{$totalnum}</span>件相关商品</p>
    </div>


    <div class="nav_prop">
        {if $cate_name eq ''}
        <div class="nav_variety">
            <span class="fl">品　种</span>
            <div class="search_wrap_text">
                {if $cate<>''}
                {foreach from=$cate key=key item=item}
                <a href="/pricetrend/index?cate_name={$item.cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}&order={$order}" title="{$item.cate_name}" cate_name="{$item.cate_name}">{$item.cate_name}</a>
                {/foreach}
                {/if}
            </div>
        </div>
        {/if}
        {if $currency_name eq ''}
        <div class="nav_rmb">
            <span class="fl">币　种</span>
            <div class="search_wrap_text">
                {if $CurrencyShow<>''}
                {foreach from=$CurrencyShow key=key item=item}
                <a href="/pricetrend/index?cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$item.name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}&order={$order}" title="{$item.name}"  currency_name="{$item.name}">{$item.name}</a>
                {/foreach}
                {/if}
            </div>
        </div>
        {/if}
        {if $area_name eq ''}
        <div class="nav_area">
            <span class="fl">交货地</span>
            <div class="search_wrap_text">
                <div class="search_te">
                    {if $AreaShow<>''}
                    {foreach from=$AreaShow key=key item=item}
                    <a href="/pricetrend/index?cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$item.area_id}&area_name={$item.area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}&order={$order}" title="{$item.area_name}"  area_id="{$item.area_id}" area_name="{$item.area_name}" >{$item.area_name}</a>
                    {/foreach}
                    {/if}
                </div>
                {if $CountArea>9}
                <div class="swt_text stms1"><span>更多</span><i></i></div>
                {/if}
            </div>
        </div>
        {/if}
        <div class="search_prot">
            <form name="" action="" method="get">
               <input type="hidden" class="orit" name="currency_name" value="{$currency_name}"/>
               <input type="hidden" class="orit" name="area_id" value="{$area_id}"/>
               <input type="hidden" class="orit" name="area_name" value="{$area_name}"/>
               <input type="hidden" class="orit" name="cate_name" value="{$cate_name}"/>
               <input type="hidden" class="orit" name="list_search" value="{$list_search}"/>
               <input type="hidden" class="orit" name="order" value="{$order}"/>
                品种：<input type="text" class="orit" name="cate_name" value="{$cate_name}"/>
                交货地：<input type="text" class="orit" name="area_name" value="{$area_name}"/>
                牌号：<input type="text" class="orit" name="product_name" value="{$product_name}"/>
                厂商：<input type="text" class="orit" name="brand_name" value="{$brand_name}"/>
                <input class="orit_btn" type="submit" value="搜 索"/>
            </form>
        </div>

    </div>

    <div class="search_text_wrap">

        <div class="search_menb">
            <div class="relsearch">
                {if $order eq ''}
                <a href="/pricetrend/index?cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}" class="fsort curr">综合<i></i></a>
                {else}
                <a href="/pricetrend/index?cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}" class="fsort">综合<i></i></a>
                {/if}

                <div class="ppld_flip">
                    <!--<p class="fl"><span class="blue" id="currPage"></span>/<span id="totalPage"></span></p>-->
                <!--<a href="javascript:void(0)" onclick="prePage()" class="left_btn ffs lb_default"><</a>-->
                <!--<a href="javascript:void(0)" onclick="nextPage()" class="right_btn ffs lb_default">></a>-->
                    {$linkpage}
                </div>

            </div>
        </div>
    </div>
    <div class="product">

        <div class="product_title">
            <span class="items breed">品种</span>
            <span class="items grade" >牌号</span>
            <span class="items firm" >厂商</span>
            <span class="items price" >价格(元/吨)</span>
            <span class="items number" >数量（吨）</span>
            <span class="items supplier">涨跌</span>
            <span class="items operate" >操作</span>
        </div>
        <ul class="product_iwrap">
            {if !$data}
            <li class="tac pt10 pb10">暂无信息</li>
            {else}
            {foreach from=$data key=key item=item}
            <li class="supply_item">
                <span class="items breed" style="width:160px;" >{$item.cate_name}</span>
                <span class="items grade" >{$item.product_name}</span>
                <span class="items firm" >{$item.brand_name}</span>
                <span class="items price orange fwb" style="width:160px;" >{$item.price}起</span>
                <span class="items number" style="width:160px;" >{$item.num}</span>
                <span class="items supplier blue" style="width:160px;">{$item.price_change}</span>
                <span class="items operate" product_id="{$item.product_id}" product_name="{$item.product_name}" brand_name="{$item.brand_name}" currency_id="{$item.currency_id}" ><a href="javascript:void(0)">查看</a></span>
            </li>
            {/foreach}
            {/if}
        </ul>
    </div>




    <div class="page tar ptb10p" id="page">{$links}</div>

</div>

<div class="mui-dialog-mask remove dn" ></div>
    <div class="mui-dialog remove dn" style='width:1000px; height: 460px; left:40%; top:50%;margin-top:-240px;position:fixed;margin-left:-250px;' >
    <a href="javascript:void(0)" class="overlay-close"></a>
    <div class="mui-diglog-wrap">
        <div class="mui-dialog-header">价格走势</div>
        <div class="mui-dialog-body">
            <div class="brandMsgTips" style='margin: 5px 15px; padding: 0px;'>
                <div id="container"  style="min-width: 310px; height: 400px; margin: 0 auto">
                </div>
            </div>
        </div>
    </div>
    </div>
<div class="mui-dialog-skin remove dn"></div>;

{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/footer.html"}